package fr.uparis10.miage.m1p1.menu.project;

import fr.uparis10.miage.m1p1.menu.GenericMenu;
import fr.uparis10.miage.m1p1.menu.MenuExecutor;
import fr.uparis10.miage.m1p1.menu.MenuItemStruct;

public class ProjectMenuExecutor implements MenuExecutor {

	public void execute() {
		GenericMenu mainMenu = new GenericMenu();
		MenuItemStruct[] menuItems = { new MenuItemStruct(), // 0
				new MenuItemStruct(), // 1
		};
		menuItems[0].text = "Show Project";
		menuItems[0].executor = new ShowProjectExecutor();
		menuItems[1].text = "Search Projects";
		menuItems[1].executor = new SearchProjectExecutor();
		mainMenu.addMenuItems(menuItems);
		mainMenu.show();
	}

}
